package com.boxuegu.boxueguapiservice.service.impl;


import com.boxuegu.boxueguapiservice.dao.ExercisesMapper;
import com.boxuegu.boxueguapiservice.entity.Chapter;
import com.boxuegu.boxueguapiservice.service.ExercisesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Vincent
 */
@Service("exercisesService")
public class ExercisesImpl implements ExercisesService {
  @Autowired
  private ExercisesMapper exercisesMapper;
  
  @Override
  public Chapter findExercisesByChapterId(int chapterId) {
    return exercisesMapper.findExercisesByChapterId(chapterId);
  }
}
